<?php get_instance()->view('common/header');?>
<style type="text/css">
    img{max-width: 100%;max-height: 100%;}
</style>
<div class="page-container home">
    <?php get_instance()->view('common/sidebar');?>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title"> <?php echo $title ?> </h3>
                    <ul class="page-breadcrumb breadcrumb">
                        <li><i class="fa fa-home"></i><a href="javascript:void(0);"><?php echo $title ?> </a></li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet">
                        <div class="portlet-body">
                            <div class="table-container">
                                <div class="table-actions-wrapper"> <span> </span></div>
                                <table class="table table-bordered table-hover" id="datatable">
                                    <thead>
                                    <tr role="row" class="heading">
                                        <th width="20%" sort="false">商家</th>
                                        <th width="20%" sort="false">配送员</th>
                                        <th width="30%"> 标签</th>
                                        <th width="10%" sort="false">评分</th>
                                        <th width="10%" sort="false">评论时间</th>
                                        <th width="10%" sort="false">操作</th>
                                    </tr>
                                    <tr>
                                        <th><input class="form-control form-filter input-sm" name="m_name" type="text"></th>
                                        <th><input class="form-control form-filter input-sm" name="deliveryman" type="text"></th>
                                        <th></th>
                                        <th><input class="form-control form-filter input-sm" name="score" type="text"></th>
                                        <th>
                                            <div class="margin-bottom-5">
                                                <input class="form-control form-filter input-sm" name="send_date_from" dp placeholder="大于等于" type="text">
                                            </div>
                                            <input class="form-control form-filter input-sm" name="send_date_to" dp placeholder="小于等于" type="text">
                                        </th>
                                        <th>
                                            <div class="btn-group">
                                                <a class="btn btn-xs filter-submit btn-default"><i class="fa fa-search"></i> 搜索</a>
                                                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle btn-xs" type="button"><i class="fa fa-angle-down"></i></button>
                                                <ul role="menu" class="dropdown-menu pull-right">
                                                    <li><a href="javascript:void(0);" class="filter-cancel">重置</a></li>
                                                </ul>
                                            </div>
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody></tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function(){
        datatable_init({
            src: $("#datatable"),
            sAjaxSource: "<?php echo getUrl('deliveryman/comment/getList');?>",
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [0,1,2,5]
            }]
        });
        $('.content').live('mouseover',function(){
            $(this).height('75px');
        });

        $('.content').live('mouseout',function(){
            $(this).height('26px');
        });

        $('[dp]').not("[noinit]").datepicker({
            changeMonth: true,
            autoclose: true,
            format: "yyyy-mm-dd",
            language: 'zh-CN'
        });
    });
</script>
</body>
</html>